{% load tags %}
<ul id="menuList">
  {% if groups|includes:"Enterprise" %}
    <div class="menuBlock">
      <div class="enterpriseLevel">Firmos ataskaitos</div>
      <a href="/enterprise/manager/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/manager'%}class="selected"{% endif %}>Skyrių ataskaita <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/enterprise/load/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/load'%}class="selected"{% endif %}>Apkrovimo ataskaita <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/enterprise/projects/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/projects'%}class="selected"{% endif %}>Firmos projektai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/enterprise/unexecuted" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/unexecuted'%}class="selected"{% endif %}>Neįvykdyti projektai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/enterprise/budget/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/budget'%}class="selected"{% endif %}>Biudžeto ataskaita <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/enterprise/employees" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/enterprise/employees'%}class="selected"{% endif %}>Firmos darbuotojai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
    </div>
  {% endif %}
  {% if groups|includes:"DepartmentManager" %}
    <div class="menuBlock">
      <div class="departmentLevel">Skyriaus ataskaitos</div>
      <a href="/department/manager/{{ departmentId }}/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/department/manager'%}class="selected"{% endif %}>Skyriaus ataskaita <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/department/projects/{{ departmentId }}/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/department/projects'%}class="selected"{% endif %}>Skyriaus vykdyti projektai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/department/budget/{{ departmentId }}/{{ startDate }}/{{ endDate }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/department/budget'%}class="selected"{% endif %}>Biudžeto ataskaita <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
      <a href="/department/employees/{{ departmentId }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/department/employees'%}class="selected"{% endif %}>Skyriaus darbuotojai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
    </div>
  {% endif %}
  {% if groups|includes:"ProjectManager" %}
    <div class="menuBlock">
      <div class="projectLevel">Projektų ataskaitos</div>
      <a href="/project/list/{{ username }}" onclick="startMenuLoader(this);">
        <li {% if pathList.1.url|startswith:'/project/list'%}class="selected"{% endif %}>Vadovaujami projektai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
    </div>
  {% endif %}
  {% if groups|includes:"Employee" %}
    <div class="menuBlock">
      <div class="personalLevel">Darbuotojo ataskaitos</div>
      <a href="/personal/{{ username }}" onclick="startMenuLoader(this);">
        <li {% if pathList.0.url|startswith:'/personal'%}class="selected"{% endif %}>Vykdomi projektai <img src="/images/ajax-loader.gif" style="visibility: hidden;" /></li>
      </a>
    </div>
  {% endif %}
</ul>
